﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AUV5.Web.Pages
{
    public partial class BulletinList : PageBaseFrontend
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                if (base.IsVerified)
                { 
                    bindBulletin();
                    
                }
            }
        }

        private void bindBulletin()
        {
            int recordcount=0;
            repBulletin.DataSource = BLL.BulletinBLL.Instance.GetPagedList(base.VerifiedUserID, AspNetPager1.PageSize, AspNetPager1.CurrentPageIndex, ref recordcount);
            repBulletin.DataBind();
            AspNetPager1.RecordCount = recordcount;
        } 


        protected void AspNetPager1_PageChanged(object sender, EventArgs e)
        {
            bindBulletin();
        }
    }
}